document.addEventListener('DOMContentLoaded', function () {
    const searchButton = document.getElementById('searchButton');
    const searchInput = document.getElementById('searchInput');

    searchButton.addEventListener('click', function () {
        const searchTerm = searchInput.value;
        // 跳转到 results.html 并传递搜索词
        window.location.href = `results.html?searchTerm=${encodeURIComponent(searchTerm)}`;
    });
});